using FytSoa.Domain.Core.Result;
using System.Threading.Tasks;
using FytSoa.Domain.Core.Param;
using FytSoa.Domain.Sys;
using System.Collections.Generic;

namespace FytSoa.Application.Sys
{
    /// <summary>
    /// 授权表服务接口
    /// </summary>
    public interface ISysAuthorityService:IApplicationService
    {
        
        /// <summary>
        /// 根据角色获得权限
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<List<SysAuthorityDto>>> GetByRoleAsync(long roleId);


        /// <summary>
        /// 保存权限信息
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<bool>> AddAsync(SysAuthorityParam authorityMenu);

    }
}
